import fetch from './fetch'
import Taro from '@tarojs/taro'

// 发送短信
export const sms = (data) => fetch({
  url: '/contract/sms',
  method: 'POST',
  data,
  header: {'Cookie': Taro.getStorageSync('cookie')}
})

export const captcha = () => fetch({
  url: `/contract/captcha64?${new Date()}`
})

export const getCitysByGeo = () => fetch({
  url: `/electronicSignature/region`
})

export const confirmByHome = (data) => fetch({
  url: `/electronicSignature/bank3Factors`,
  method: 'POST',
  data
})
